package com.ruoyi.system.api;


import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.dto.AuthUserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "youlai-admin")
public interface UserFeignClient {

    @GetMapping("/api/v1/users/username/{username}")
    R<AuthUserDTO> getUserByUsername(@PathVariable("username") String username);
}
